//
//  TZShowVideoView.m
//  BSBDJ
//
//  Created by user on 16/5/27.
//  Copyright © 2016年 Burning. All rights reserved.
//

#import "TZShowVideoView.h"
#import "TZEssenceItem.h"
#import "TimeNSStringTool.h"


@interface TZShowVideoView()
@property (weak, nonatomic) IBOutlet UIImageView *pic_Imagev;
@property (weak, nonatomic) IBOutlet UIButton *play_Btn;
@property (weak, nonatomic) IBOutlet UILabel *time_Label;
@property (weak, nonatomic) IBOutlet UILabel *playcount_Label;
@end

@implementation TZShowVideoView

+ (instancetype)showVideoView{
    return [[NSBundle mainBundle]loadNibNamed:@"TZShowVideoView" owner:nil options:nil].lastObject;
}
- (IBAction)playVideoClick:(UIButton *)sender {
    sender.selected = !sender.selected;
    
    if (sender.selected) {

      
    }else{
        
    }
}

- (void)setItem:(TZEssenceItem *)item{
    _item = item;
    [self.pic_Imagev sd_setImageWithURL:[NSURL URLWithString:item.large_image]];
    self.time_Label.text = [TimeNSStringTool getFormatterTime:item.videotime];
    
    self.playcount_Label.text = [TimeNSStringTool getForamttPlaycount:item.playcount];
    NSLog(@"%@",item.videouri);
}


@end
